<?php
/**
 * 用户账号
 */
namespace app\api\model;
use app\common\model\AccountAddress as AccountAddressModel;

class AccountAddress extends AccountAddressModel
{
    /**
     * 计算已分配账号
     * @param $address
     */
    public static function distribution($address,$mid){
        self::where('address',$address)->update(['status'=>2,'mid'=>$mid,'update_time'=>date('Y-m-d H:i:s',time())]);
    }
}